package com.ruoyi.purchase.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 商品对象 firm_commodity
 * 
 * @author ruoyi
 * @date 2023-07-16
 */
public class FirmCommodity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 条码 */
    @Excel(name = "条码")
    private String barCode;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 规格 */
    @Excel(name = "规格")
    private String specification;

    /** 型号 */
    @Excel(name = "型号")
    private String model;

    /** 颜色 */
    @Excel(name = "颜色")
    private String color;

    /** 类别 */
    @Excel(name = "类别")
    private String category;

    /** 拓展信息 */
    @Excel(name = "拓展信息")
    private String etCetera;

    /** 单位 */
    @Excel(name = "单位")
    private String units;

    /** 采购价 */
    @Excel(name = "采购价")
    private BigDecimal purchasePrice;

    /** 零售价 */
    @Excel(name = "零售价")
    private BigDecimal retailPrice;

    /** 销售价 */
    @Excel(name = "销售价")
    private BigDecimal salesPrice;

    /** 最低售价 */
    @Excel(name = "最低售价")
    private BigDecimal minimumPrice;

    /** 状态 */
    @Excel(name = "状态")
    private String state;

    /** 序列号 */
    @Excel(name = "序列号")
    private Long serialNumber;

    /** 批号 */
    @Excel(name = "批号")
    private Long batchNumber;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long supplierId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setBarCode(String barCode) 
    {
        this.barCode = barCode;
    }

    public String getBarCode() 
    {
        return barCode;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSpecification(String specification) 
    {
        this.specification = specification;
    }

    public String getSpecification() 
    {
        return specification;
    }
    public void setModel(String model) 
    {
        this.model = model;
    }

    public String getModel() 
    {
        return model;
    }
    public void setColor(String color)
    {
        this.color = color;
    }

    public String getColor()
    {
        return color;
    }
    public void setCategory(String category) 
    {
        this.category = category;
    }

    public String getCategory() 
    {
        return category;
    }
    public void setEtCetera(String etCetera) 
    {
        this.etCetera = etCetera;
    }

    public String getEtCetera() 
    {
        return etCetera;
    }
    public void setUnits(String units) 
    {
        this.units = units;
    }

    public String getUnits() 
    {
        return units;
    }
    public void setPurchasePrice(BigDecimal purchasePrice) 
    {
        this.purchasePrice = purchasePrice;
    }

    public BigDecimal getPurchasePrice() 
    {
        return purchasePrice;
    }
    public void setRetailPrice(BigDecimal retailPrice) 
    {
        this.retailPrice = retailPrice;
    }

    public BigDecimal getRetailPrice() 
    {
        return retailPrice;
    }
    public void setSalesPrice(BigDecimal salesPrice) 
    {
        this.salesPrice = salesPrice;
    }

    public BigDecimal getSalesPrice() 
    {
        return salesPrice;
    }
    public void setMinimumPrice(BigDecimal minimumPrice) 
    {
        this.minimumPrice = minimumPrice;
    }

    public BigDecimal getMinimumPrice() 
    {
        return minimumPrice;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }
    public void setSerialNumber(Long serialNumber) 
    {
        this.serialNumber = serialNumber;
    }

    public Long getSerialNumber() 
    {
        return serialNumber;
    }
    public void setBatchNumber(Long batchNumber) 
    {
        this.batchNumber = batchNumber;
    }

    public Long getBatchNumber() 
    {
        return batchNumber;
    }
    public void setSupplierId(Long supplierId) 
    {
        this.supplierId = supplierId;
    }

    public Long getSupplierId() 
    {
        return supplierId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("barCode", getBarCode())
            .append("name", getName())
            .append("specification", getSpecification())
            .append("model", getModel())
            .append("color", getColor())
            .append("category", getCategory())
            .append("etCetera", getEtCetera())
            .append("units", getUnits())
            .append("purchasePrice", getPurchasePrice())
            .append("retailPrice", getRetailPrice())
            .append("salesPrice", getSalesPrice())
            .append("minimumPrice", getMinimumPrice())
            .append("state", getState())
            .append("serialNumber", getSerialNumber())
            .append("batchNumber", getBatchNumber())
            .append("supplierId", getSupplierId())
            .toString();
    }
}
